package jp.co.toshiba.ffsa.form.csas;

import jp.co.toshiba.ffsa.form.BaseForm;

import org.seasar.struts.annotation.Arg;
import org.seasar.struts.annotation.Mask;
import org.seasar.struts.annotation.Maxlength;
import org.seasar.struts.annotation.Msg;
import org.seasar.struts.annotation.Required;

/**
 * 登録情報変更
 * @author npc
 */
public class Csas201Form extends BaseForm {
	/** メールアドレス*/
    public String emailAddress;
    
    /** 名 */
    @Required(msg=@Msg(key="errors.required", resource=true), arg0=@Arg(key="first_name", resource=false))
    @Maxlength(maxlength=30, msg=@Msg(key="errors.maxlength", resource=true), arg0=@Arg(key="first_name", resource=false), arg1=@Arg(key="30", resource=false))
    @Mask(mask="^[a-zA-Z0-9 -/:-@\\[-\\`\\{-\\~]+$", msg=@Msg(key="errors.emcharacter", resource=true), arg0=@Arg(key="first_name", resource=false))
    public String firstName;
    
    /** 姓 */
    @Required(msg=@Msg(key="errors.required", resource=true), arg0=@Arg(key="last_name", resource=false))
    @Maxlength(maxlength=30, msg=@Msg(key="errors.maxlength", resource=true), arg0=@Arg(key="last_name", resource=false), arg1=@Arg(key="30", resource=false))
    @Mask(mask="^[a-zA-Z0-9 -/:-@\\[-\\`\\{-\\~]+$", msg=@Msg(key="errors.emcharacter", resource=true), arg0=@Arg(key="last_name", resource=false))
    public String lastName;
    
    /** 会社名 */
    @Required(msg=@Msg(key="errors.required", resource=true), arg0=@Arg(key="company", resource=false))
    @Maxlength(maxlength=100, msg=@Msg(key="errors.maxlength", resource=true), arg0=@Arg(key="company", resource=false), arg1=@Arg(key="100", resource=false))
    @Mask(mask="^[a-zA-Z0-9 -/:-@\\[-\\`\\{-\\~]+$", msg=@Msg(key="errors.emcharacter", resource=true), arg0=@Arg(key="company", resource=false))
    public String company;
    
    /** 組織名 */
    @Required(msg=@Msg(key="errors.required", resource=true), arg0=@Arg(key="department", resource=false))
    @Maxlength(maxlength=100, msg=@Msg(key="errors.maxlength", resource=true), arg0=@Arg(key="department", resource=false), arg1=@Arg(key="100", resource=false))
    @Mask(mask="^[a-zA-Z0-9 -/:-@\\[-\\`\\{-\\~]+$", msg=@Msg(key="errors.emcharacter", resource=true), arg0=@Arg(key="department", resource=false))
    public String department;
    
    /** 電話番号 */
    @Required(msg=@Msg(key="errors.required", resource=true), arg0=@Arg(key="phone", resource=false))
    @Maxlength(maxlength=20, msg=@Msg(key="errors.maxlength", resource=true), arg0=@Arg(key="phone", resource=false), arg1=@Arg(key="20", resource=false))
    @Mask(mask="^[0-9+-]+$", msg=@Msg(key="errors.emcharacter", resource=true), arg0=@Arg(key="phone", resource=false))
    public String phone;
    
    /** 地域 */
    @Required(msg=@Msg(key="errors.required", resource=true), arg0=@Arg(key="region", resource=true))
    public String region;
    
    /** country確認*/
    @Required(msg=@Msg(key="errors.required", resource=true), arg0=@Arg(key="country", resource=false))
    @Maxlength(maxlength=100, msg=@Msg(key="errors.maxlength", resource=true), arg0=@Arg(key="country", resource=false), arg1=@Arg(key="100", resource=false))
    @Mask(mask="^[a-zA-Z0-9 -/:-@\\[-\\`\\{-\\~]+$", msg=@Msg(key="errors.emcharacter", resource=true), arg0=@Arg(key="country", resource=false))
    public String country;
    
    /** city確認*/
    @Required(msg=@Msg(key="errors.required", resource=true), arg0=@Arg(key="city", resource=false))
    @Maxlength(maxlength=100, msg=@Msg(key="errors.maxlength", resource=true), arg0=@Arg(key="city", resource=false), arg1=@Arg(key="100", resource=false))
    @Mask(mask="^[a-zA-Z0-9 -/:-@\\[-\\`\\{-\\~]+$", msg=@Msg(key="errors.emcharacter", resource=true), arg0=@Arg(key="city", resource=false))
    public String city;

    /** 地域名 */
    public String regionvar;

    public String returnFlag;
}